Removed unneeded deps from newly refactored submodules
Refactored how endpoints are defined, added mapObj utility