Split out ReflogLine into separate file and add some (very) basic specs

Plus a little bit of refactoring.