Move cjdcmd routing logic into go-cjdns

I haven't tested this as it is, but I have something like this in my branch.

I added SortByQuality and SortByPath methods to Routes and unexported the byQuality and byPath structs to simplify documentation.