[#1709] Akash/Faris : Removed unused code and fixed test in api_authentication feature.
Merge branch 'master' of git://github.com/rapidftr/RapidFTR
Merge pull request #457 from farismosman/master

[#Fixing failing tests]