improving overall operation of application

Updated login code, which now stops using static variable to pass data
between classes and starts using String array to pass data between
classes.
Updated all exceptions to print errors into logs

Copyright notice added to Middle Server

Updated if statement in autolog case to switch