wal: move record method to record.go
Merge pull request #66 from etcd-team/wal_refactor

wal: move record method to record.go