Support modes (NULLABLE/REQUIRED/REPEATED).

The feature is not yet supported when configuring with the traditional
field list style, but supported only with "schema_path".

Fixes #9.
simplified the implementation of mode
Merge pull request #10 from yugui/feature/support-mode

Support modes (NULLABLE/REQUIRED/REPEATED).