Decoding The Universe: Tools For Optimal Extraction Of Information From Galaxy Surveys