Support contexts when loading libraries and ajaxproxy

Fixes for: https://issues.jboss.org/browse/RAILO-1747
I'm sorry for the 'local igmores' commit. My lack of experience = i don't know how to remove it. Please ignore.