api for orders (with requests coming from node)

orders are saved in the database
tickets and reservations have yet to be reworked
some improvements and bugfixes to the order js