Major refactorization to dynamic code. Still working on mem leaks in copyFileToRemoteHost().

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