Removed lots of terminal whitespace.
First pass at moving all config into one or two files.
Fixed bug in previous commit, relating to figshare credentials.
Fixed fat fingered bug.  UP_CONFIG != UP_config
Merge branch 'fix/upconfig'

Conflicts:
	uportal/uportal-config/configuration2.inc
	uportal/uportal-config/dspace-functions.inc

Pulled in fix for UP_CONFIG vs UP_config bug.
Fixed bug, renamed function and missed a call.
Merge branch 'fix/makekeyname'

Merge bugfix.
MAKE FIGSHARE GO
Fixed bug where using empty() would fail if input was 0 (zero).

Used isset() instead.
Rewrite of external command invocation for security.

It should now be impossible(*) to run arbitrary commands on
either the webserver or the remote hosts.

* No guarantee though.
Cleaned up login / logout page warnings.