Several fixes to RegistrationType handling in Two-Phase Student Reg

1. Use reg_type.__unicode__() rather than reg_type.displayName
directly (in case .displayName is not set, we should default to .name,
which .__unicode__() already does).

2. Use RegistrationType.get_or_create in /rank_classes view, so that
the page doesn't crash if one of the expected RegistrationTypes
doesn't exist yet.

3. Don't use get_or_create in /save_priorities view. Previously this
was a minor security hole that allowed students to e.g. register for a
class with a RegistrationType of Priority/{arbitrary injected string}
by submitting tampered post data.

4. Fix a jQuery selector so that the page doesn't try to submit empty
registrations with Priority/undefined.
Fixes QSD saving rendered versions of HTML special characters

Previously, the direct QSD editing textarea used the non-escaped
version of the content to put as the starting point for the textarea,
which resulted in special characters being saved as their rendered
form on the second save of a QSD page. This change makes those
contents escaped. The static edit page was already doing this
properly.

See #974 for more details.
Merge commit '63ee2900ef31a2bd17d3b87773106b6daa057ab0' into stable-feb14
Merge commit 'e2defb2' into stable-feb14
Merge pull request #1115 from learning-unlimited/stable-feb14-backports

Stable feb14 backports