Use module-level imports to allow overriding.
Slight tweak to settings.vagrant to register the template directory.
Create a 'backends' submodule to factor out all the client construction/API connection logic.
Factor out the smartfile client from main.views completely and put it into the 'Smartfile' class.
Factor the last DRY violations in main.views out into the Smartfile backend.