repairing rules editor in web client, fixes #11

Possibly due to a change in angular.js, the creation of `$index` must now be explicitly requested. Additionally, the `current` identifier was used when `$scope.current` was meant.

Slightly unrelated, but I've taken the liberty to bind `editing` to the correct variable scope

Will you review and merge @pwnetrationguru? :)