pkg/highlight: move binary file detection to here
Created by: slimsag
This is so that pkg/highlight.Code
is the sole source for doing highlighting, which makes it usable from e.g. other GraphQL handlers easily.
This PR does not need to update the CHANGELOG because no user-facing changes.