Fixes #112, includes test for backend, removes legacy contractrecord model, added tests for load_vendor