Add perfdata thresholds

This addresses issue #19. Tests will be added in subsequent commits.