Group the dependencies in the gemspec.

Group the framework dependencies together and the adapter dependencies together. Group the runtime dependencies together and the development dependencies together.
Take a framework dependency on the `json` gem, since the CliMacro uses it.