Updated wsfederation extract token method to support Restify style param...

...s processing. Also fixed some jshint errors