Start of project tests

- Using unittest + httmock + factory_boy
- Doing a little bit of code reorg in run_update