pulled adapter out of MainActivity into stackable traits, resolves #2

Signed-off-by: Konstantin Läufer <laufer@cs.luc.edu>