fix some bad behavior in the allocation command
Basically rewrite allocation to not hardcode any of the magic bits
Pull out settings command for reading settings, better tests for allocation command
0.2.1