Use absolute URLs for resources

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