use OpenSSL::BN functionality and Base64::strict_*
reverted changes to base64 usage
hopefully fix JRuby problems
whitespace shuffling to trigger Travis rebuild
change byte handling to pacify ruby 1.8.7 / Travis
renamed vars
Merge pull request #13 from arnehormann/simpler

simplify some functions