Adding globals + minor fixes

Adding global variables for view DOM elements and API URLs.
Updated router module

Instantiate views.