initial code refactoring to create a generator command.
fix build target.
added generator test case for local server.
added GAE app generator.