Replace string type with graph.Direction

This conversion is not complete as there are still uses of string
directions via the Direction.String method in leveldb.
Retain correct copyright notice
Merge pull request #41 from kortschak/enumerated

Yep! Replace string type with graph.Direction