Added trident state implementation

* refactored S3Bolt