Added common core functions so that api can run on its own

Quick fix to get the API to stand on its own