added middleware to trap requests instead of inside controller

- rearchitecting no longer using hstore json serves better
added specs for request model + controller model

also code for getting them to pass
added spec to view one request

- along with passing code
- introduced new mechanism for controller action specific javascript