Use jbuilder to create the json endpoints

Add jbuilder code to master.