Added key http serving and segment encryption.
Encryption now works!