Exported necessary functions, refactored GET requests. API server now re...

...ceives and responds properly. Mongo and neo4j correctly store and query necessary data.