Panic when an invalid type is passed. Simplifies return types.
Use retina travis badge
Merge pull request #1 from ryanuber/e-panic

api: panic instead of returning error