Heavy refactoring

I left all the cryptographic stuff mostly unchanged but I deeply modified the settings/parameters loading and most of changed the usage of the Gem. 

I think it is now way more simple to install, configure and use this API.