Accepts permalink as nested attribute for contest.
Refactor contest form.
Refactor problem form to share the same JS code with contest form for the permalink field.