Rewrite final part of final function

- don't collect all results in a list and process list in final part, but
  rather return results when they are generated and order from the SQL query in
  Mapnik style sheet. Need additional columns in return structure.
Func 'match': speedup by using "dict[x] if x in dict" instead of "dict.get(x)"
Merge pull request #66 from plepe/rewrite-match-func-return

Rewrite superior function to save memory and improve speed