Render the gist directly, without AJAX roundtrip.
Rearrange some code.
Restrict Gist display to given user when a user is specified.

If a valid gist ID is given, but belongs to a different user, redirect to the ID on that user's subdomain.