Adds copyright header to logging.rb.
Factors authentication into its own class.
Updates readme.