Fix contextPath definition problem and improve Request & Response context methods