Bugfix
Several changes

Moved the neighbors/ api call to api.py
Adjusted JS calls accordingly
If API key is wrong, server sends back a 403 response rather than a 301
to login