Big overhaul

Changed method of loading libs, now they must be manually loaded. Added
cookie and database classes. Simplified use of views. And more.