Split REST API and frontend webapp into separate Flask apps

Split the REST API into a different Flask instance from the frontend BikeShare webapp so that Apache can run them separately.

The REST API is in bikeshareapi.py, while the frontend is in bikeshare.py.