Various API improvements WEB-4197, WEB-4194, WEB-3334, WEB-3363, WEB-3611, WEB-4186