Improvements to custom org tree UI
This replaced the PermaCrud.js create() calls with inline transaction
begin, creates, and commit. We do this to solve a number of problems:
* Create all new nodes within the same transaction so that a failure
gracefully rolls back.
* PermaCrud.js does not currently disconnect opensrf client sessions
(though it has a disconnect() method), which can lead to pcrud drone
exhaustion when processing large batches of creates, etc.
* Re-using the same opensrf session leads to re-using the thread trace
(opensrf.js bug), which causes requests to intermittently fail as pcrud
backends slowly die off (see bug above), which causes their translater
cache entry to clear, which causes new sessions to fail when the hit the
translater with an already-cleared translator cache key.
Signed-off-by: Bill Erickson <berick@esilibrary.com>