added script for setting up gmock automatically along with some reorganization.