Renamed pages to layouts. Moved error page to layout. Added new core_URL class.