added user agent detection middleware
realtime provider now injected into user controller