security: huge security update

Added a new error message handler.
Added a new page handler.
Added a new function for navigation.
Added Open Graph image and meta tags in theme index, including a
Facebook share image.
Removed page folder from includes.
Moved additional verifications into core index.