Added support for Curve security

rebar.config needs work -- it currently only compiles on a
Mac, and only if libsodium is installed.