Added support for capturing requests. Closes #6 and #7.