Move the doLogin and authenticateToken in Model so that it can be extended/changed by WidgetModel. WS Specific