Cngan register after create

When creating a project that Mortar won't accept, all the files get created before the failure.

Mostly refactored the register command to call a separate, reusable function.  Made api post before generating projects to see if project name can be registered.