Fix filling of store_distances hash to consistently work
on all clients regardless of Sinatra state. Also eliminate stores
call if there are no stores to fetch.
Dismiss sign_in modal when displaying sign_up modal in order
to resolve focus bug.