Add Word and WordStorage class

@john-hu Please help me review this patch. Thank you.
Be aware of close() issue, ie: input.close(), output.close(). I cannot remember if we need to do that. Please check the IOUtils.copy() to do so.