Active implants and scaffolds for tissue regeneration