Port project to gem structure.

closes #22