Clean up ubw module

This involves removing the old main, which we won't
be using any more, and moving public methods together
and private methods together
Add basic schema and entries for schedules