extract the preparation for the command execution into its own class
fix xhr error handling
update routes according to dev bundles (yosmanyga)