Better PagesController, fixed bugs in libraries

also removed traits and advanced array notation, now the app runs on PHP
5.3
Merge pull request #2 from ecoreng/ecoM28A-2

Better PagesController, fixed bugs in libraries