[anand] moved the main methods to test classes. Also exported rules which can be used in fiddler autoresponder to simulate slow responses and some general housekeeping