Refactor scripts into preStart and postShutdown

1. Added postShutdown script to save/capture files and provide grace
time before warden container is destroyed
2. Stay with jdk1.7
3. Fix bug in PermSize sizing