Refactor the django tests a little
Add tests for AppManager __init__

And fix a small bug found
Add tests for DjangoManager init
refactor create_db_objects()

splitting out a sub method that should be easier to test ...
Add tests for infer_environment()

And refactor the link_local_settings() tests a little