Rendering the first page as per plan.

Included enquire lib for phone/desktop detection based on media query.
Using globals to pass around the controller. This is needed to avoid
cyclic dependencies when requiring controller in a view class.
Rendering the Activity View using the modified controller
Handled dom removal of page.

Now the pages are removed when the back button is pressed.
Now the activities are rendered from a collection.

Cleaned up the code by removing commented code blocks.