added lib/template-base, shared between browser and server.
prettyDate works for '1 week ago' and accepts msec since epoch.
made prettyDate a template filter.
added simplifyUrl template filter.