adding options method support for http endpoint. Some refactoring to htt...

...p endpoint logic also made here. ESBJAVA-3081