Changed authorizeConnection to get the full request object instead of just the remoteAddress.  Also, it now returns a 403 Not Authorized if authorizeConnection returns false.