Abstracted tab-behavior from the Main-activity class into TabManager to
remove code from Main-activity class. A lot more readable this way.
Also made DeviceAdapter generic (extending from Device).