handle expired token.

works on #3
setup testing framework with grunt #1