Add base64 encoding handler, modernise project

Bring the thing up to date a bit (adding Rakefile, Gemfile etc.) and add encoding handlers (only base64 atm).