Reset port on connection failure

This closes #30.
- Add $scope.reset function to LoginCtrl