Fixed master datastructure updates after removing an application; and a typo.
Merge pull request #504 from mosharaf/master

Worker address was getting removed when removing an app.