Synchronized access of session to prevent multithreading errors
Changed thread.session to thread.getSession() to fix concurrency issues.
Merge pull request #3 from RangerMauve/master

Made session access synchronized to prevent errors when accessing it from multiple threads.