Create libcdr.rb

This formula is still incomplete.
Just wanting to see if it passes brewbot test. 
Reference issue: https://github.com/Homebrew/homebrew/issues/30383
Basically copy the test from `tinyxml2.rb` and call a single function provided by `libcdr` in the C code to check that it has linked correctly.