Working on AWON upload. Moved authenticate method to application because all the AWON controllers will need it.