Create qm.php

This is entry point script.