Ported to a flask implementation

The port is not currently 100%. `/event` and `/events' are
currently not implemented