support for server-side encryption

@marcosvm

This is an alternative to #10 

The only difference is that encryption now is configurable.

Unfortunately this is not testable as the fog mock store does not store the encryption attribute.