Turn mqhelper into a real module, separated from front-end