logging: fixup uwsgi_log_rotate indentation

So one can actually read it
logging: extract uwsgi_log_do_rotate from uwsgi_log_rotate

So it can be reused
logging: reindent setup_choosen_logger
fixed #666
attempt to ignore user namespace in setns
fixed uwsgi.rpc
fix emperor destroy on mount/umount hook errors
fixed #669
fixed #683
Fix symbol lookup error in the Mono plugin on OS X.

On OS X, mono libraries have to link against the Foundation framework.
Merge pull request #685 from Ventero/mono

Fix symbol lookup error in the Mono plugin on OS X.
fixed fastcgi and scgi protocols with out of buffer
attempt to fix solaris/smartos events with emperor
core/rpc: avoid double close

Reported by coverity as CID #1231253
plugins/rpc: fix a couple of memory leaks

Always free response, in the worst case we are freeing NULL which
is a NOP.
Reported by Coverity as CID #1231246, #1231245
Merge pull request #688 from xrmx/coverity1608

Few coverity fixes
prepare for 2.0.7
add store_delete option to cache. This automatically removes invalid caches files
Merge pull request #687 from goir/uwsgi_remove_invalid_cache_file

add store_delete option to cache.
logfile: add support for filesize based rotation

Extends the logfile plugin sntax to accept a key value string.
Supported values are:
- logfile, the actual file name of the log file (mandatory)
- backupname, the file name of the rotated log
- maxsize, the size in bytes that triggers rotation

maxsize is mandatory if you want rotation, if you omit backupname the logfile with a
timestamp appended would be used as file name.

Example:

logger = staticlogger file:logfile=%dstatic.log,backupname=%dstatic.log.old,maxsize=1500
log-route = staticlogger app: -1|req: -1

will create a file based logger called static logger that would log
all the static requests to a file called static.log, which would be
rotated each 1500 bytes to a file named static.log.old

Fixes #542