Implemented configurable response formats. See #3.

Signed-off-by: Jason Lewis <jason.lewis1991@gmail.com>
Return an encoded empty array when formatting empty Eloquent collection. Fixes #4.

Signed-off-by: Jason Lewis <jason.lewis1991@gmail.com>