Add application creation

Signed-off-by: toshle <rosen_ra4ev@abv.bg>
Fix name validation

Signed-off-by: toshle <rosen_ra4ev@abv.bg>
Extract validation functions to app.js

Signed-off-by: toshle <rosen_ra4ev@abv.bg>