refactoring generator for more effective maintenance

This changeset depend on `tilt` gem for using template engine,
and so, the output will be aligned.
Merge pull request #39 from ainame/refactor

Support OSX platform and refactor generator for more effective maintenance