repair reading from cache for categories and simplifies a bit caching functions
preview in edit
updated TODO in README.markdown
use mathjax script compatible with both http and https