Add lib.security, move saw to lib module