Move API routes into their own lib
Add API calls for adding/removing hosts from roles