added url rewrite to use in production. this will force ?mode=dev on localhost if not vhost is set(ie: dev using file://)