Corrected class reference in public page and library function bugs
Various bugfixes for new cms setup
Merge pull request #20 from JRogaishio/dev

Dev merge to fix various issues with new setups