Fix middle test to find the right postgis extension files.
Remove statics from `middle_pgsql_t`.
Removed statics from `middle_ram_t`.
Removed statics from node cache objects.

Updated middle layers and node cache reader to allocate and use
the new node cache objects.
Removed an overlooked static from `middle_pgsql_t`.
Merge remote-tracking branch 'MapQuest/kk_multiback' into mla_multi_backend
Removed statics from `build_geometry`.
pull out global scale and keep it inside output_options. also pull out macrofunctions to util namespace