Dartify objects.js

Implement Gitobject class in dart.

This is just a re-write of objects.js

@devoncarew  PTAL thanks