Calculate geoip accuracies from country bounding box data, closes #145.
Merge pull request #261 from hannosch/145-better-geoip-accuracies

Calculate geoip accuracies from country bounding box data, closes #145.
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.
Only record map positions and scores for coordinates with complete records.

Before we only checked that there was one complete record in the entire
batch and not one for each individual position.
Tweaks :)
Refactor the process_station_measures to work on a per station key basis.

This lets us remove a bunch of the dictionaries and state tracking and
make sure we only check the blacklist and free space once per station.
Use the space available check to also determine new station status.

This avoids one extra query to the station table. Also avoid blacklist
check for already known stations.
Add map tiles related ini settings and replicate bash script logic.
Optimize the export_to_csv part of the map creation job.

Using offset/limit keeps the peak memory usage in check (~250mb).
Doing the division on the Python side avoids SQLAlchemy helpfully
creating Decimal objects for the return values. And moving the
writelines call out of the loop avoids many I/O calls by writing
1 million lines at once, with currently ~47 million in the end output.
Restrict tile generation and map view to web mercator bounds.

On the map view we allow some overscrolling, before bouncing the view
port back into the bounds.
Dynamically look up datamap tiles layer from config setting.

Also allow the configured domain as part of the CSP image sources.
Respect the configured protocol for the assets domain.
Expose concurrency for map tiles rendering as a command line option.
Include filechunkio for boto's s3_put tool.
Merge pull request #264 from hannosch/process-station-by-key

Refactor the process_station_measures to work on a per station key basis.
Add 'count' column to blacklists, rename 'created' to 'time', cc #238
Merge code paths for ichnaea.tasks.mark_moving_{cells,wifis}, cc #238