Factored dubins curve stuff into its own library and Qt-friendly wrapper