Fix db connection leaks in tests, closes #263.

We need to properly close the connection, transaction and inner
sub-transaction / session. Closing the connection properly returns it
to the pool.
flake8 cleanup after myself, remove unused imports
Git ignore lib64
Refactor ichnaea.service.submit.tasks to merge wifi, cell paths.