Rewritten router, added ability to get params from preg routing