Fixed line indentations to 2 spaces for some files, updated all API calls to include site id in their session validation.