Architectures for Inlining Security Monitors in Web Applications