page styling and templates, core fpm class functions

added and changed some styling. setup new template structure. base
functionality implemented