Re-enable authentication for admin area & add logout functionality
Split up server files in separate directory