took some code out into an extension
took some code out into an extension

jianwoo/Just,msdgwzhy6/Just,jianwoo/Just,alvinvarghese/Just,JustHTTP/Just,f22x/Just,msdgwzhy6/Just,f22x/Just,msdgwzhy6/Just,jianwoo/Just,sunfei/Just,f22x/Just,alvinvarghese/Just,JustHTTP/Just,sunfei/Just,alvinvarghese/Just,sunfei/Just