Added in token ID, to prevent cors error
bug fix: navigator.network.connection blah blah wasn't working
bug fix to return of deferred promise. You've probably already fixed this but you aint online :D