Added authentication configuration for the notebook app.
update custom auth per review

- pass settings around, not applications
allow login_handler to be undefined

(for use outside IPython)
allow LoginHandler to override get_current_user
make logout_handler overridable
address review in custom auth
Merge pull request #6977 from minrk/finish-5384

Add authentication configuration