extracted ajax logic to serverutils
moved all map functionality to map utils