Added a get_last_post function to the Posts class
Reworked index.php to control editor and main