Moved object name validation to validate.py.
Whitespace fix.
Validation: added hostname, mac,  ipv4 validation routines.