refactored code to handle missing json data

if json payload missing, returns an error, should change it to return
some http error in true rest fashion
added USAGE to index of CanonicalController
wrong checkin

dont know how this got checked in