added hubs and devices to routes, added simple test for creating hub