Complete Proximity API

This is a large pull request, including the following features:

1) A fully-featured proximity API to link to the Proximity table in the database.

2) Tests for each API endpoint

3) integration with existing systems.