Migrate existing submissions into 'solution' field

This can be run at any time, as running it again will only affect new
submissions. That said, it probably isn't worth running it until the
controller that accepts submissions stores the solution both in the 'code' and
'filename' fields, as well as the 'solution' field.

See #1165