Formatting and documentation cleanup; remove obsolete testProjectPermissions function (resolveProject was modified to only return projects with at least CONTRIBUTE access).
Fix improper cast (resulted in warning about signed vs. unsigned integer comparison).
Use C-style comments in C files to get rid of warnings.
Formatting and log cleanup.
Change minimum permission level from CONTRIBUTE to UPLOAD.