entry: break out time, level and message from data

Replaces #33 and fixes #44.

Please review @aybatme
Yeah, I think you're right. A global isn't that terrible.