Move files to corresponding package

- move Record class to io package
- move Segment related classes to segment package
- move FutureCloseable class to common package
Record Builder/Writer/Reader
Entry Builder/Reader to serialize/deserialize records