Improve migration script based on code review suggestions.

* More meaningful names for the XMLRPC session and session key
* Fix a bugged test
* Fix gettext calls when using SEE_LOG_MESSAGE