A generalized elastoplastic plate theory and its algorithmic implementation