Refactor mech turk to be restful
Created by: cschloer
Can now be tested with this front end: https://github.com/Blocp/buildings/pull/49
Don't test on 744 MAC DONOUGH STREET, BK, 11233, there's some weird things in the dev database related to it.
- I've simplified the model to work the same as all of the other models in our service.
- The controller uses the "proc" function created in alessandro's recent PR
- All of the wonky stuff (including calls to amazon mech turk and document service) is handled in the controller.
- I added a mech_turk.py file in the libary to clean up the code.
- You now must input a "requester_name" to the POST. This saves the name of the person who requested the mech turk hit in the database.
- The "response_message" field is required for PUT and that response is sent to amazon mech turk on a rejection. The response_message is saved in the database.
- Automatically reject hits if they are the wrong type.