Standardize json output format. Made WriteJson private, added WriteJsonSuccess(v interface{}, m string) and WriteJsonError(m string, v interface{})