Add missing command to README
Fix Travis build
Update PyPI links
Add pypip.in README badges
Remove WORK IN PROGRESS from README

We have the beta status on pypi and the pypip.in pin for it in the readme
Typoi
Move get_job() into db.py

Another step in encapsulating all model code in db.py.

get_metadata() and get_logs() (which are only called by get_job())
also move into db.py and become private functions.

Also add docstrings
Rename engine -> ENGINE

Valid name for a global constant
Rename metadata -> _METADATA

Valid name for a global constant.

Also this is no longer used outside of db.py, so take the opportunity to
make it private.

This also removes some problems with some functions redefining the name
"metadata".
Rename jobs_table -> JOBS_TABLE

Valid name for a constant.
Rename metadata_table -> METADATA_TABLE

Valid name for a constant.
Rename logs_table -> LOGS_TABLE

Valid name for a constant.
Correct some docstrings
Don't use map()

List comprehensions and simple for loops are much clearer.
Merge branch 'master' of github.com:ckan/ckan-service-provider
Factor sqlalchemy out of job_listener()

Add functions for updating jobs in the db to db.py, refactor
web.job_listener() to call these instead of doing its own sqlalchemy.

This is another step towards encapsulating the db code in db.py.

This makes it clearer (from looking at db.py) what the model actually is
- what db tables and columns we have, and how they change over time in
different conditions. Things like "mark a job as completed successfully" and
"mark as job as failed with an error" are now a small set of nice functions
with names and docstrings.

This also makes the job_listener() code shorter and much more readable.
Factor sqlalchemy out of run_synchronous_job()

Refactor web.run_synchronous_job() to call db.py's new methods for
updating jobs, instead of constructing its own dict and calling
web.update_job().

This makes run_synchronous_job() much simpler and easier to read.

Delete web.update_job(), no longer used.
Improve some docstrings
Don't overwrite finished_timestamp

Don't overwrite the finished_timestamp of a job when marking the job as
failed to post to result_url.
Improve a docstring