add read/write timeouts to net2

This is for issue #52. It doesn't include any new tests yet, but it passes all the current tests. If you like the changes, I can add some tests for ManagedConnImpl to ensure the timeouts work as expected.