Hide the password tab if the used didn’t sign in with local authentication
Using an id rather than first-child to display the correct preferences tab

Also updated the preference test to assert that the preferences panel is
always displayed when openening the modal
Limit visibility/email options selector in the manageuser widget
Install CasperJS through npm on Travis
Merge remote-tracking branch 'simong/hide-password-tab'
Minor clean-up
Merge pull request #3818 from bp323/issue-3818

When changing the profile visibility of a user in the manageuser widget the email options become unselected
Merge pull request #3819 from bp323/npmCasper

Install CasperJS through npm on Travis