form_to_id() functions

This implements #139.  I will assign to Elliott since he is the one that really wanted these =).