A bunch of small fixes, attempt to add a test runner

Added ContractInstance model to be fleshed out later.
Added requirements.txt for development requirements
[WIP] Added runtests.py for running tests without a surrounding Django application
Added empty Resource model
Added a very simple test case for test execution