add couse key verification decorator in common for use in both studio an...

...d lms

PLAT-88
@waheedahmed @symbolist @adampalay 
Can you rewrite the tests using `ddt` so the code is not duplicated for both valid and invalid course keys here?