fix indentation/whitespace

code was randomly indented (in places). So forced all to
a consistent indent level and cleaned up extraneous whitespace.
ncm-sendmail: quote SMART_HOST to allow brackets.
sanitize filenames

A name with spaces or slashes would be used 'as-is' for logfiles and
this would cause a resultant command to fail
(e.g. a crontab entry of 'do-something >log file').  With this
patch, '/' and whitespace characters are transformed to
underscores. People can of course still use the 'log' attribute
within the cron definition to specify a different name, but the
default will no longer cause an error.

This patch is in reply to support request #1 ("cron component bug")
in sourceforge.
Merge pull request #12 from gauthierl/ncm-sendmail

ncm-sendmail: quote SMART_HOST to allow brackets.
when fixing filenames, change any whitespace instead of only spaces

The previous code was only looking at ' ', rather than \s so tabs
would be left which would also cause an error.
Merge pull request #13 from njwilliams/njw/cron-filenames

Njw/cron filenames
Fix Perl errors.

The filename was done against the variable `$file` instead of
`$fname`, which lead to Perl failing under `strict` mode.

Fixed now.
Merge pull request #15 from piojo/fix-cron

Fix Perl errors.
Merge pull request #14 from piojo/master

Integrate ncm-openldap into GitHub
Merge pull request #16 from piojo/ncm-network

Integrate ncm-network into GitHub+Maven.