Refactorization to use promises

- Use promises in services instead of returning actual objects.
- Moved Dependencies folder to root.
- Refactored directives to more granular parts
- TemplateRestProvider updated to work against REST services
- Demo app refactored, works against TemplateService instead of
localstorage
Added ExitUrl option to editor
Updated version
Merge pull request #1 from AgronKabashi/development

v0.9.1