Moved to fully crafting records in record creation, changed function to get signing public key, formatted it

Signed-off-by: Sean Qureshi <sean@tox.im>