HAT-TR-318-007: A Double-lined M Dwarf Binary with Total Secondary Eclipses Discovered by HATNet and Observed by K2