COMMANDBOX-25 Added package set command and refactored some stuff to be nicer.