Move code related to APIv1 into roundware/api1, misc cleanups