Merge pull request #82 from isudana/master

adding options method support for http endpoint. Some refactoring to htt...
Merge remote-tracking branch 'upstream/master'
Merge pull request #83 from isudana/master

making http method of http endpoint optional
fixed illigeal state exception while shutting down
Merge pull request #84 from miyuru/master

fixed illigeal state exception while shutting down
Merge remote-tracking branch 'upstream/master'
making isHttpEndpoint to true only if http method is set. this was the same behaviour had before the refactoring. reverting back as it might affect AM. after proper analysis we can change the behaviour again