added before and after functions for http requests
Merge branch 'master' of https://github.com/myster0n/elem.js
added try catch so that the _after callback always gets called.