setting a timeout for requests

Added request timeout in webapp