[#57] Add default_tags and default_extras handling

As per issue #57.

Line 76 is a change out of the scope of this branch that crept in, and is addressed to improve the heuristic for WMS handling.