Legs and components

Added Auth1::legs and Auth2::legs functions. Organized HTTP and session code under Components.