minor changes, removed old stuff
Code reformatting
added support for newpagetemplate plugin

- inclusing some refactoring
PHPDocs and trim namespace spaces.
added name to select
some escaping
Merge remote-tracking branch 'klapin/master'
Merge newpagetemplate feature, and fix up some coding standards items.
New release.