JSON responds to format at end of line
move controller actions to their own classes

A controller no longer implements action methods, they should define classes the react to the action.