BRANCH current_trigger_fix:

   fixed a bug where set_current_snapshot() should let the trigger to update the current versionless snapshot
   set_current() update the versionless snapshot after the snapshot is committed
   added set_current_snapshot() to js Client API