make api async and removed ugly coffeescript code also hopefully makes directory watching more robust as well as regexp matching