partial fix for STUD-145, catch invalid location errors and return a HTTP 400 error to client
move test so it doesn't split the tests from a helper method
Merge pull request #116 from edx/fix/cdodge/make-sure-imported-files-are-location-clean

partial fix for STUD-145, catch invalid location errors and return a HTT...