Updated API.

Created Database class. Organized functions. Created errors to return.
Updated Page Loading.

Created a view and template for each page in the site object.