Outbound Iptable rules and apparmor update

Fixes issues #203 #224
set uid and gid for users
added outbound iptables rules for the source/document groups
added missing tee -a build.log commands
updated file permissions/ownership to reflect uid/gid
took out the mysql database and replaced with sqlite
updated apparmor profiles for sqlite

This also fixes #193 my switching production to using sqlite. Scaleability shouldn't be a concern and sqlite is less of an attack surface.