Update resultserver.py

try catch on chunk handler read, otherwise fails without exiting the loop when reading fails.
Replaced MongoDB Connection with MongoClient
Style fix
Added timestamp to static analysis
Added missing endif
Fixed display of compile time
Merge pull request #346 from spark2k06/patch-2

Update resultserver.py
limit total number of executing analysis machines