Added Command class, Command.Type and better way of executing and
loading commands.