Remove ability to pass trans in KWS dict.
Miscellaneous cleanup in legacy_compiler.
Merge pull request #129 from bukzor/various_cleanup

Various cleanup