Move to SemVer, bump version number to 5.1.0

Still not yet ready for a release though, as we're still receiving
patches. NEWS needs an update for all the changes among other things.