add assertion functions.

They should be used in every unexported libgotr function to avoid having to deal
with int status return codes everywhere.
rename some crypto stuff for consistency
begin migration to ECBD