rewriting logic for release-rotation to use bash-features, makes it so it works only with actual releases and not other files which happens to exist in the same directory (hey, I didn't enjoy having the script removing all the files I had there!) This also fixes issues with paths with spaces in them and is faster since is doesn't spawn lots of subshells for everything.
fixes issue #4 (also breaking out a function)
fixes issue #4
Check if symlink is dangling ([[-e ..]] returns false) and bail out if target exists but is not a symlink
support to prune files from releases
Support to change how many releases that are retained
support for hooks
update example
Merge branch 'master' of github.com:NitroXy/Web-app-deploy-script

Conflicts:
	deploy_settings_example.sh
Short documentation about hooks
Major overhaul, support for colors, shows detailed error messages, hooks.
Testing for .{git,svn} directories.
More verbose error/info when repository isn't cloned.
Adding a default lock-filename.
Lock filename based on settings filename.
Handle ctrl+c (it removes the lock-file)
Changing cwd so relative paths works if calling script from another location.
Expanding DST so a relative path works (export changes cwd)
Command list does not include hooks.
Using DST variable instead.