Tons of work on automatic token renewal, and added an instance of bottle
Refactored webserver, now running correctly as a separate object