refactored promise code to make it work with changes that were made to angular 1.3.0-beta.18
added .editorconfig file