Updated gemspec file.

- Added homepage URL.
- Scoped dependencies tighter.
Added project versioning icons to README.
Setup testing environment.
Added first round of tests.
Minor fixes for bugs caught by tests.