Check if name is valid before registering

Trigger some hopefully helpful errors if invalid
Update PHP 4-style declarations to PHP 5
Update line-break regex
Tweak hex color validation
Add post and page select list fields
Update version number

A minor release should be used when adding functionality, according to
samver
Update translation
Update version to 1.1.5. Update documentation.