Added framework for the API. The visualisation should call urls given by
the API (such as "localhost/companies") using $.get or similar and then
pass the returned json to flot.

Additional queries can be added in the obvious manner.

Updated libraries.pip

To run the API, simple type

python API.py
Fixed bug with scraper which meant that changes to the DB were lost if it was not closed gracefully