Made plugins more flexible at start.
Some fixes for uwsgi.