More code cleanup

Moved send_request and resolvePackagePath into util
Standardize member variable names