WIP Foreground service controlled by preference

The service is running in the foreground, but it is ignoring the preference to tell it to do so.
Changed Battery Service to run in same process as the activity. However now when you kill the activity, the service does not register broadcasts.
Fixed problem with settings and foreground

The service was running in a serperate process and the getDefaultSharedPreferences() method does not work inter-process by default. I moved the service back into the same process as having it's own process was not benefiting me at all.