Rewrote core.http.check_and_serve_file to remove race conditions
Instead of reinventing the wheel, we now let Python's open
function determine the state of the file, and interpret any exceptions it raises.
Fixes #343 (closed)
Edited by Daniel Wysocki