Major refactoring

* Rewrite Post class
* Add page type
* Logic fixes
0.0.1