only scaling apps down if they are currently hosted
moved app lock to include all of remove_app
also guarding on scaling up
Merge pull request #367 from shatterednirvana/guards-on-scale-down

only scaling apps down if they are currently hosted