Some code construction changes
- added authenticate.h
- moved authenticate code into authenticate.cpp
- made some functions static
- changeStatusMessage moved into MainWindow class now using a QString
  for formatting instead of a local buffer and snprintf
- more cosmetics