Store the codetext for unique urls instead of the code_id+version. Also, fix a bug where the code xml was getting truncated way too easily.
Make sure code isn't too long