fixed a bug when editing a log with the incorrect path to post to.
added logic to allow formatted mileage via virtual attribute
log refactor