Created a singleton to access application context

Created a singleton class that allows the application context to be
accessed from anywhere. Note this is an application context, so some
functionality is limited.