Moved to Pages model

Implimented Jquery Mobile Pages and removed the ajax calls.