Improved plugin system
header("Transfer-encoding: chunked") causes problems, needs more testing
Removed debug statement