The startup Sentry has closed $40 million from Accel and New Enterprise Associates. Here's how the company grew from an open source project.