Made changes for express v4 support in the example code sample for basic authentication.