Added entries for IntelliJ Idea project files to the .gitignore
Added a potential fix for the infinite error loop to InitiatorTerminalScanner. Now if a CardException happens 5 times in a row the waiting loop will exit, and the thread will notify that the scanner is disconnected.