Cleanup in webapp_types. More constraints in checking web-app type.

Signed-off-by: Daniel (dmilith) Dettlaff <dmilith@verknowsys.com>
Refactored non dry & bloated deployer code into 4 common used functions.

Signed-off-by: Daniel (dmilith) Dettlaff <dmilith@verknowsys.com>