units(1): add libedit support

Add line editing and history support to units(1) via libedit.

Reviewed by:	bdrewery