READY: Refactor signature script to use external info

Refactor signature script to use external info to deal with cookie expire issue, also avoid to expose someone's qq password directly in the script or on the server.