Moved library files to "lib" folder
Added ORM class factory, simplified setup