initial commit
Adds jbuilder views, moves logic to the model