replace angular_binding template helper with a directive

also factor out field formatting into a service