Remove duplicate code, cleanup when possible

* Settings menu moved to BaseActivity
* Moved strings around where necessary
* Adapted tests
* Various little refactorings