changed from capnslog to logrus for logging JSON structured message. finished issue #383
This puts config in its relevant location and moves functions around loading config files into the main package. As a side effect of removing cyclic imports for the API config, the context library is no longer used.