Simple PHP Router class (supports REST and reverse routing)