Security enforcement

Added some resource limits
Added C# features
Added tests