Added motion_model gem

I'll help to work with the project model object
Changed model persistence

Models are using the motion_model gem and it's helpers to persist the
objects itself.