Fixing bugs, adding page titles

Changes:
- Fixed a bug where trying to add/edit a completely empty post crashed the server
- Pages now properly generate titles