Remove dependence on php5-curl and mod_rewrite