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.