Updated Adapter example

Fixed some mistakes in the Adapter example. Documentation example also updated here: https://github.com/realm/realm.io/pull/140

@kneth @bmunkholm 
I think this class can be static ?