Builder: Fix JS to clean table name

- Fixed the JS that cleans the table/module name to prevent overwriting
user-entered table name, as mentioned in #1001
- Pass list of contexts from the controller to the modulebuilder form,
rather than pulling them from the config file in the view.