Small changes

Added one file to .gitignore.
Cleaned a bit main function.
Corrected white characters at CMakeList.txt files

Changed tabs to spaces.
Removed unused spaces.
Added log line that prints which comiler is used.
Added *.autosave to .gitignore
Added couple of syslogs to Daemon part
Created macro to define exceptions
Impoved messages passed to Exceptions