Fixed exception handling in resource.py

Handle 500 now sends signal to receivers of got_request_exception
Merge pull request #1 from vedarthk/master

Fixed exception handling in resource.py