Move all linccd code into its own library