Introduce a MartyConfig class

Introduce a MartyConfig class to control smarty's behavior without
having the actual smarty class.

TODO:

* Add caching to the MartyConfig class.