Replace dart:json package to fix unit tests

Replaces the dart:json library, which has been removed from core in SDK 0.8.7, with dart:convert to make the unit tests work again.

Additionally contains some clean up like defining version constraints for dependencies in the pubspec and removes trailing white spaces. I also bumped the version to 0.2.5.