MNT: Refactor constants (comments welcome)

closes #209 
But if we fail to import xraylib, the following part will blow up.