Core functionality for a gnunet impelemtation in JavaScript.