Moved all fossil related templating functions to this plugin, away from theme