overlay refactor (part 12): finish porting Asset. Closed by c952c5b14d0d5e2bbfafba62e9d8076ea866abb6
fix publishing a new version (the session needed a flush())
fix adding a note to an AssetVersion (TOPIC_ASSETS was not defined)
use the add command instead of repo.add to add a new file to the
mercurial repository (mercurial API is a moving target, better to use
commands when possible, as they are less likely to change)
fix the naming convention validator
load upload.js in the template every time the widget is displayed (since it
loads in the dialog we can't load it as a resource anymore)
overlay refactor (part 12): finish porting Asset. Closed by c952c5b14d0d5e2bbfafba62e9d8076ea866abb6