A Rails engine for metering application usage