WICKET-5508 Memory model improvements for Session fields

(cherry picked from commit c78379f4ba3fdd58c574a610db3e85e616860d10)
WICKET-5510 Avoid using jQuery.text() when possible. It is very slow in IE
WICKET-5504 AjaxRequestTarget.append/prependJavaScript cannot handle scripts with new-lines anymore

Extend the test to have one evaluation with new lines and another without

(cherry picked from commit a69e7ed1c0256a6ebd0e89749095eed7632e3697)
WICKET-5505 DefaultPropertyResolver does not respect JavaBean conventions

(cherry picked from commit 6cceff44098a0183f0c9f632af93b3205db4ac22)
Fix compilation issue after a cherry-pick