assets/save: Simplify origin URLs validation code
At the time there were some specific processings for github, sourceforge, bitbucket and gitlab repo URLs validation but not anymore so some code can be simplified now.
Depends on !1053 (closed)
Migrated from D6552 (view on Phabricator)