Repaired current release determination

Solution suggested by user jmarc at the Nas4Free forums to address issues arising from Nas4Free being built from patched versions of FreeBDS. The results from uname -r needed to be trimmed and sanitized so that the tarball fetch functionality is maintained.
Formatting and logic errors

This has minor formatting modifications made to allow the portsnap
abilities to function.
Import ezjail's periodic.conf
Adds Portsnap capabilities
Error checking for existence of /etc

In the new version of functions.inc, there were some operations that assumed that /etc existed within the new jail. In order to avoid problems, the function split_world was modified to first check for the directory's existence.
Fixed config importer

Previously, jails did not have a type value stored when the config was imported. Now, all jail configs imported are assumed to be full sized jails. This prevents the creation of erroneous fstab entries.
Minor fix

I forgot that strings are "" in PHP.
Removed conditional perl link

When thin jails are created, they should ALWAYs have the ugly perl hack symlink created.
Added check for resolv.conf

No matter what happens, if there is a directory /etc, we should put a resolv.conf there.
Attempt to fix logic error

Reported via: http://forums.nas4free.org/viewtopic.php?f=79&t=3894&sid=3b32fc1e08feaf9741dfbc709c374f1a#p20418
Missing quotes
Remove default activation of ports.

The default installation sets the 'ports' key to false. However, the fstab creation script checks if the key exists, since true and false cannot be saved to the XML file. Now there is no default ports key until the testing branch gets merged in.
Merge branch 'master' of https://github.com/fsbruva/thebrig into working

Conflicts:
	conf/ext/thebrig/extensions_thebrig_edit.php
	conf/ext/thebrig/functions.inc