Fix logging by oauth

Simple operator precedence...
Also update model for changes inside nested blocks
Merge pull request #37 from oerpub/fix-oauth

Fix logging in by oauth
Replaced _this with @. Copy/paste from debugger mishap.
Remove the onchange handler when the view closes.

Without this, there is an accumulation of content change handlers on
jquery, n-1 which does nothing good.
Merge pull request #41 from oerpub/performance-enhancements

Avoid piling up of content-change handlers
Merge branch 'master' into repo-in-url
URLEncode the id as a whole, not as a component.

This simple change means that a slash (/) is no longer encoded as %2F. This
makes the url much easier to read.