Migrated the codebase to the November 2018 proposed master of wr-cores. Lot of rework, hopefully it will work...