Various bug fixes and code cleanup

- fixed an issue where the permalink could be overridden by a user
field in the article resulting in a 404 error
- gitignore fixes
- replaced foreach loop in default template
Work on site search

- search results now supports new object model
- made search results template file not manditory, will fall back to
index.php
- readme rewrites
New templating system

- adjusted version number
- moved header class to it's own file