Port dxr-{build,serve} command to argparse.

Also, use the entry_points attribute of setuptools.