Using correct Drupal methods for generating URLs.

References #49.

/cc @aaronschachter