session refactor: session store the handler instead of calling foreach request
fixed jsonp transport
handle close url
refactor session and transport and fix close and heart beat
formating and code organization
Merge pull request #25 from dosht/master

many refactors