res/desktop::fixed some bug of buildmenu

1.desktop one rightclick with three times of RegisterMenu dbus connect
tower:https://tower.im/projects/8f19f0bf0e754f0b82ef2c24bc230973/todos/b52d587a47c24586bd8534769dfb97e2/

2.when in renaming,the buildmenu of rect of grid is webkit menu ,not
grid deepin menu
tower:https://tower.im/projects/8f19f0bf0e754f0b82ef2c24bc230973/todos/7a71c877e867464196182a8cfeb569bd/

3.fixed when templates > 10 ,and the menu in desktop new option will
wrong and cannot new
https://tower.im/projects/8f19f0bf0e754f0b82ef2c24bc230973/todos/d5b6597ea0764025b134b6f684f97fe5/

4.update build_menu to sopprot submenu in common/js/utils.coffee

Change-Id: I77bb177de2daec3ef941247cf98d7eef9b32d648