Simplify init options for security modes.

Update to jQuery 1.8.3 for tests.
Autodetect stackmobapp and set useRelativePathForAjax to true
Default security mode to match window.location.protocol