added encrypted key reference handling + some small fixes and change to
namespace use statements
travis status
encryption tests