return the companies data from server as id -> company object
client loads the initial companies from server
clean the code up so there are no warnings
use the longest common prefix of the route
refactor the code a little