Refined json def gen from web input.

Ready to add _dep array gen into mongoose.code.tpl
Note that 'models.' is added to the dep model name, so there is no need
to specify that in web input.