Remove empty space after ?>
Improve JsonRPC and match debug output with the php output.
Use JSON for Sync and Watch.
Fix the pack manager.