Added additional code for integration with loggintoboggan based on a patch from tantai (see http://drupal.org/node/942364).
Initial commit.