Refactored CaptivePortalHandler to reduce code in subclasses and implement proper Factory. Removed redundand url members.