Update TODO.
Update NEWS for 5.0.6 and 5.1.4beta.
Bump the version number to 5.1.4beta.