Fix bug where app crashed after being paused.

The app now returns to the main menu when paused.
Refactor BTConnectFragment
Create ControllerFragments using a factory
Change logger tag
Tidy up comments and improve variable names.
Restructure source code file layout.