Modified form.py to fix some bug. Rename BaseController and BaseModel.