Deprecate the replace method

- the replace method is deprecated and can be safely remove when the package move to the next major version (ie: go version 2.0.0)
- Interval code improvements:
    - Encoding/decoding is cleanly decoupled from FlintstoneDB
    - Remove other useless methods