LIVEOAK-623 Install from git failure leaves unusable application directory
- Create helper for directory delete
- Modify GitApplicationsResource to delete the application directory of git clone fails