change all json calls to /stuff/json

where stuff is the base controller, like notes or phots.
make email model user the builder/chainable pattern to make it a bit easier to
use