clear debug code

 debug code should no exist…
fix last staff user can't remember

always remember logged  staff. when next ,show staff user
in page.
fix file moudle

add variables: error object to callback parameters.
add sync all media  to synDatabase

before this, sync media is only for commodity . now, it sync
media at all.  but ,need  set download url and local save path in
config.js.