Added configurable socket timeout

This PR relates to issue: https://github.com/jembi/openhim-core-js/issues/286