Main material feature

Hi,Dr Ji

     I have made some progress in dynamic-select-menu.

     The three level dynamic-select-menu has been completed on frontstage.

     I also did some work in app/admin/main_material.rb

     Next step,i prepare to improve the dynamic-select-menu by using json data and make it work on backstage

     Thanks!
在pull request里面要把debug信息清理干净，方便别人review。要注意