Added support for capturing exceptions thrown by the server, and propagating them to the test
Cleaned up imports and updated .gitignore file