Generalized p_tokens_given_model to support arbitrary numeric backings (in preperation of using arbitrary-precision floats). Added front-end for recognizer.