Capture hanging tag in file/folder edit forms

If the user fails to hit the comma key after typing the last tag, and
clicks the submit button for the form, that last tag is lost. Matching
the functionality observed in LH, that tag should get captured. Updated
code to do this for new/edit folder and edit file. Doing this on new
file is more involved and will require hooking into the jquery file
upload event.