Adds the getId() method and caches the getSlug() method

Signed-off-by: Adam Engebretson <adam@enge.me>