Refactors CommandProcessor. Partially patches up #47. Updates filters.