Integration of Legacy Client-Server Applications in a Secure Multi-Tier Architecture