Display p4 sync messages and fix some bugs

1. Redirect p4api error messages to the message window
2. Fix cursor moving
3. Sync code at init
4. Add the nosync option

Signed-off-by: hwangcc <hwangcc@csie.nctu.edu.tw>
Merge branch 'master' of https://github.com/hwangcc23/p4bisect

Conflicts:
	main.cc

Signed-off-by: hwangcc <hwangcc@csie.nctu.edu.tw>