clean up.
better error type.
MyriaCatalog: get *real* numTuples.
delete unused code and html.