Reorganize API-related packages

Moves the existing dynamic endpoint API modules into a new 'dynamic'
package and then moves all the other API-related packages in as siblings
to that package.