APY-13 : Complete the security gateway

Added authenthicated header support for server side filtering
for INSERT and UPDATE.