Added nginx rewrite support to router.

The PhalconEye CMS not working with Nginx rewrite (by default with php-fpm). I fixed this.
Example of my nginx config:

```
server {
  listen            80;
  server_name       phalconeye.dev;
  proxy_set_header  Host phalconeye.dev;

  root              /var/www/htdocs/phalconeye.dev/public; # Site public folder

  access_log      /var/www/htdocs/phalconeye.dev/logs/nginx.access.log;
  error_log         /var/www/htdocs/phalconeye.dev/logs/nginx.error.log;

  location / {
    root  /var/www/htdocs/phalconeye.dev/public;
    try_files  $uri  $uri/  /index.php?$args ;
    index  index.html index.htm index.php;
  }

  location ~ \.php$ {
    root  /var/www/htdocs/phalconeye.dev/public;
    try_files  $uri  $uri/  /index.php?$args ;
    index  index.html index.htm index.php;
    fastcgi_index index.php;
    fastcgi_param PATH_INFO $fastcgi_path_info;
    fastcgi_param PATH_TRANSLATED $document_root$fastcgi_path_info;
    fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
    fastcgi_param APP_ENV dev;

    fastcgi_pass unix:/var/run/php5-fpm.sock;
    fastcgi_split_path_info ^(.+\.php)(/.+)$;
    include fastcgi_params;
  }

  sendfile off;
}
```