Rename Router::setExtensions() to Router::parseExtensions().

Also renamed Route::setExtensions() to Route::parseExtensions() for consistency.