Fix the tests
We now return the created API token instead of the message to show to
the users. So inform the users about the success of the operation in
the controller directly.
This fixes the tests as the Token object was not json serializable while
the info string is.
Signed-off-by: Pierre-Yves Chibon <pingou@pingoured.fr></pingou@pingoured.fr>