moved the router and store into separate files per common convention