Added support for "-building=" flag.  Also split out node, way and
relation processing into a separate class for legibility.