Allow Repo.new with no params

* This is needed due to the way Rails forms work.
* Also added Repo#persisted?, which is also required for forms.