'buildslave create-slave' command parameters checks

When converting 'usepty', 'keepalive', 'maxdelay' and 'log-size' parameters catch ValueError exception and print error message.

Accept exactly 4 arguments to 'buildslave create-slave' command, otherwise we get an 'ValueError: too many values to unpack' exception.

I also did some refactoring and added new unit tests.