Update version to 0.5.1
Merge branch 'rel-0.5.1' into stable
Merge branch 'stable'