Feature/orm

First hackish way of implementing persistencejs