#249 Rest api

Refactoring config
adding update cms