few automatic code refactoring/cleanup

replace String.indexOf() with contains()
Remove unnecessary boxing, unboxing
Replace StringBuffer with StringBuilder where applicable
Removed an unnecessary ; in SyncHttpClient