Sauce integration bug crush

Issue #29 fixes

Includes a major refactor of SharedContext.
* A case statement for three different ways to run chemistrykit
* Refactored local variables into methods
* Turned MAGIC_KEYS into a method

#31 might still be an issue.