Fix settings url and view. Move and update script tags.

Moved script tags to the bottom of the body element for performance.
Add decorator to settings view so the URL will work for instance ids.
Updated to latest jquery and removed protocol expression in script
tags to let the browser choose between http and https.