BUG: Set default mimetype when base64 is requested
BUG: Sanitize to_path in ContentsManager.copy.

Without this, one of the test cases in `test_copy` attempts a copy to a
directory that starts with a leading double-slash.
Merge pull request #15 from quantopian/contents-test-reuse

Minor bugfixes to Contents API.