Import the setup code used in passport-local example.