Finished refactoring languages into languages+runtime, added preferences