refactor angular notes controller, add wait_until feature helper to wait for ajax to complete in delete spec