libathemecore, *serv: unify all three copies of create_challenge()

Should've done this earlier, I guess.
Merge pull request #200 from grawity/unify-create-challenge

libathemecore, *serv: unify all three copies of create_challenge()