improve copy operation

  - now the destination can be a directory and it will internally
    be completed to filepath destination
  - added a unit test

Task-number: QTIFW-274

Change-Id: I7741497d571cde5d5d4b374784d785358e9bb233
Reviewed-by: Niels Weber <niels.weber@digia.com>