Random IV support and cleanup of PHP/Ruby examples