Added widget support via Smarty plugin functions

Added more Smarty configuration settings, added widget support, added
meta, registerJs, title, registerJsFile, description plugins