Merge pull request #368 from reciprocity/feature/mapping-cleanup

Mapping cleanup; adding details about extended mappings
Fix authorizations widget issues

* Main issue: update checkbox state after replacing `this.join_list`,
  since this `replace()` operation causes the options to be redrawn
* Also remove `update_list_target`, since we never use `tmpl`-style list
  templates anymore
* Also ensure checkbox state only changes after server confirmation
* Also don't use `getRootModelName`, just `shortName`
Merge pull request #369 from reciprocity/feature/authorization-checkboxes

Fix authorizations modal issues
Clearer import/export of Controls

* Export of controls now exports exactly what appears in the widget
  list, by passing their `id` values as the `ids` query parameter.
* This required splitting import "save" into two phases -- "save", and
  "after_save", between which outstanding database insertions are
  "flushed".
Make Directives "Objectiveable"
Don't wait for server confirmation before checking the box.
Make mapping details bold title, not linked slugs
Merge pull request #371 from reciprocity/feature/mapping-directive-to-objective

Make Directives "Objectiveable"
Merge pull request #372 from reciprocity/feature/controls-export-changes

Clearer import/export of Controls
Fix exception pattern matching for internal unicode strings
Add Control-to-Control mappings

* also ensures consistency in mappings for the case where source and
  target models are the same
Fix counts for log events on admin page
Merge pull request #375 from reciprocity/feature/gae-exceptions

Fix exception pattern matching for internal unicode strings
Merge pull request #374 from reciprocity/feature/mapping-controls

Add Control-to-Control mappings
Add 'total' to paging data, and display total in ObjectNav
Replace `joinedload` with `subqueryload` for join tables

* Using `joinedload` for multiple join tables on objects with many
  mappings can cause extremely large query results, which slows
  responses to a crawl.  There's likely a happy medium to be found
  through analytics, but for now let's be conservative to avoid the
  run-away cases.
Fix binding and mapping lists to include Direct mappings

* A result with `instance === true` is a special case, but should not be
  excluded from lists of mappings and bindings.
* Also, don't say "Delete" for now, since it's not applicable (and
  Direct mappings have two ways to "Unmap": "orphaning" and "deleting",
  but we currently only use "orphaning" for Controls and hide "Unmap"
  for Cections.
Fix "mapping detail" to live-bind correctly

* Previously, detail wouldn't show up if there were initially no
  extended mappings and then an extended mapping was created.
Fix incorrect extended control mappings

* These were extending via their own mapped sections, which they should
  not.
Merge pull request #381 from reciprocity/hotfix/subqueryload-join-tables

Replace `joinedload` with `subqueryload` for join tables