Add QueryRouter, move Maplight into lib

Adding query routing library to deal with searches, first stab at
moving maplight request login into a library.