Added bearer strategy mechanics

Added the bearer strategy mechanics so that the non-ejs apps can login
with a token  Got it building but needs more testing.  Also updated
packages so that it would build on my windows 8 system.