Global vars initialization order modified + server protocol defaults to http explicitly
Increased code readability.
er list auth switch debugged