Switched from Peewee to SQLAlchemy

This should have no functional changes and allow for more complex
queries in the future, as well as better support for a RESTful API.
Switched from urllib to requests on dashboard

No functional change is expected.