Add environment variable config loading.
Remove defunct calling code from views.py
Refactored JSON-RPC calls out of views.py