memory views, logprobs on the fly, don't rely on 64 bits.

- use memory views instead of numpy buffer interface.
- Grammar: compute logprobs on the fly
- don't rely on unsigned long (long) being 64 bits
- for log, exp, &c., distinguish Python & C version by giving the Python
  version a py-prefix (e.g., pylog &c.)