[#59] Added AuthenticationError to lib and configured config/application.rb to load all files from /lib directory