Remove annoying MartyConfig class, add support for plugins.

No more static method calls for configuration! Instead, one can now use
the plugin dirs api from regular Smarty to implement plugins.

This update also scraps cache support, as it was impossible to use
properly anyway.