Added  shared_funcs module for lat/lon-related functions shared by apps. Code cleanup. Re-added precise coords regex. Order bounding pts to prevent bowties etc.