Restrict usernames to a single line.

Also set some other properties to help with prediction and display.

This is a fix for #112.