Move Hex.API into specific modules

See #51