Token option and use correct environment hostname

Add an option to pass a token and use the environment hostname from
django settings rather than hardcoding both assuming the dev machine.