Move configurable stuff into config.h. Closes #1.