pragha_lastfm: Use type_def to clean, implement connect and disconnect functions.