Refactored vocabularies widget, updated jQuery Form and fixed #69

I did some refactoring for easier maintenance. I moved static html into html templates under dialog subfolder, updated jQuery Form plugin and fixed uploading of vocabulary files.