dmBitLyPlugin allows to shorten urls and cache them in a local database. It packages a bit_ly_api_service and requires a login and api_key from http://bit.ly/account/register?rd=/. The plugin is fully extensible. Only works with Diem 5.0 installed.
See the online documentation : Diem bit.ly plugin documentation