Use absolute URLs for resources and links

This allows rewriting URLs.
Provide clean URLs, using PHPs mod_rewrite

Rewrite URLs by local .htaccess, URL changes propagated through document
tree.
Fix bug: confused month and year in publish script.
Provide correct MIME type for JSON answers