Updated wsfederation extract token method to support Restify style params processing. Also fixed some jshint errors