Extracted CommandType to a separate file

This is for persistent enum across different classes in Logic to
facilitate extraction of ActionSystem and HintSystem.