Add network manager for uploading the score
Includes some other code cleanup