Separate out config data.
Move non ui related source into src/lib.