Merge pull request #1 from ojje/master

Removed some dirty spaces in index.php
Merge pull request #2 from ojje/master

Delete sessions please!
Cleanup, theme support, pdo class, removed redbean, removed variables

Cleanup of codebase, multiple theme support, pdo abstraction class with
multi database support, removed RedBean from core, removed variables
class so we're not depending on a specific db
Fix magic quotes
Inc folder renamed, added redbean and swiftmail to core, fixed typos, updated facebook javascript
Rewrite of some core methods, added instagram php sdk
Rewrite of core class, added alot of documentation, added phpdoc xml
Fixed theme config filename in example app