Add sync controller to sync between real folder and database.
Add sync button to media manager.
Fix some minor bugs