Adds /api/buy/current/ and /api/buy/since/{time}/ end-points to app.py and implements their handler methods which includes accessing the database using join.
Adds buy and sell versions of the graph js files.