[lib] Use message spec when creating robotext
Test Plan: Log out, log in, check if robotext messages are displayed correctly
Reviewers: ashoat
Reviewed By: ashoat
Subscribers: KatPo, zrebcu411, Adrian, atul, subnub
Differential Revision: https://phabricator.ashoat.com/D637