Added additional REST methods (conditions, flags, motor).