[FLINK-1257] Added TypeSerializerInput/OutputFormat

Added a binary input/output format which uses the types' TypeSerializer to serialize/deserialize the objects to binary data.