Fix null properties when initing a project

When 'init' a project, we did not adjust some project properties, because of a faulty check

Additionally, refactor the code to split UI command code from the project service.

Fixes http://teampulse.telerik.com/view#item/269492