Added common core functions so that api can run on its own
Merge pull request #2 from FelixOnline/core_functions

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