Removed legacy grant code.
Added more fields to exclude from the JSONising for teh api.
Removed debug line.
Changed to compile dependancy as to try and get around exception that is
thrown when the site is run from war.
Fixed error in method call
Added the correct layout for the page.
Default all the sortkeys to 0