refactored cms.cms_toolbar to new API

Note: new API is not actually implemented yet.