bound login logic to application and connected collectorNumber from view

The collector model is now accessible from app.collector after the user logs in.

Additionally, all headers for any requests will automatically have the correct headers to make a valid request.