When adding a new folder, the id of the new folder (necessary for some DOM manipulations) is directly present in the JSON returned by the server, instead of being inferred from the returned HTML.

Inferring a folder id from the returned HTML was a crappy thing to do anyway.
When user adds a new folder, it appears in the dropdown.
Minor change in the name of a fragment.