changed jwt signing to use crypto streaming methods, added timeout method when authentication fails, tested against node js v 0.10.20