Removed *-nix-specific system calls, added support for Documents to filter by tag type