Endpoint cleanup. Simplified setting handling, variables need now explicitly set.
Removed magic dotenv.