Added API 1.0
small modifications
Added routing and segregated commands and queries