Update repo versions to 3.1.0-rc1
Add missing license headers