Additional CSS cleanup, changed btn-default to use white BG so it shows up properly on pages where the background is #efefef.
Ensuring page has ample room for save buttons (for pages such as 'settings').
fix hang in `./openbazaar stop`

Signed-off-by: Thomas Stilwell <stilwellt@openlabs.co>
removed forum link
Merge pull request #1022 from SamPatt/forum_remove

removed forum link
Use context managers properly.
Groom imports.
Properly process sys.argv. Fix #956.
Install a main function.
Use argparse to parse the arguments.
Activate coverage testing of db package.
Factor and test argument parser for migration scripts.

* Fix `path` argument.
DRY argument parsing in migration scripts.
Fix update_db shell script.

* The shell script should be replaced by an all-python script.
Merge pull request #962 from Renelvon/sane_migrations

Groom migration scripts.
Merge pull request #998 from benemorius/stop-hang

fix hang in `./openbazaar stop`
Merge pull request #989 from Klakurka/Dev2

Additional CSS cleanup, changed btn-default to use white BG
Preliminary refactors.

* Fix imports.
* Make lock and logger private attributes.
Setup a context manager for queries.

* Move type registration at initializer.
* Factor a `login` function out of `_connectToDb`.
* Guarantee lock is acquired and released.
* Guarantee connection is opened and closed.
* Silence pylint errors; the decorator is not meant to be used as an
  instance method.
Execute queries inside the context manager.