Refactor to separate api view functions from utils.
API versioning by decorator.
Reworked the events nastiness, started new api version.