Refactoring of source.  Basic authentication for admin