Updated decks/edit - added functionality to convert models to json objects for front end