Refactor seahub ajax
Fixed ajax bugs and pylint checking bug