Add /machines and /machines/:name endpoints.