Drupal form theming

After creating a custom form with FAPI (Drupal's Form API), it can be hard to theme it just like you want. Here's how to do some basic form theming including the creation of a template (.tpl.php) for the form. Note that the theme hook name must be the same as the form name.