Fix Locations delete bug

Code for location deletion contained typos and missing informations.

Fix Client edit bug

Since Client editing UI was recently refactored, some code retained
old reference to now unexisting $scope objects. Specifically to
selectedClient which has now become: client