Added full support for formatters

Added the option to add global formatters using the
$.addTemplateFormatter method. Updated the readme and the example to
demonstrate. Added basic error handling for errors in template loading.