Started adding structure of pail streams

- Bucket and BucketHeader types
- PailStream and PailStreamHeader
- Some refactoring of Pail