Refactored vocabularies widget, updated jQuery Form, 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.

Fixed #69