Add Link.TYPE_* and Link.type
Use int* instead of NULL pointers for testing
Add Link(track) and Link.as_track()
Add todo