Offload the chunking into separate class

Signed-off-by: Nico Rutishauser <nr@hotmail.ch>
Prepare large file

Signed-off-by: Nico Rutishauser <nr@hotmail.ch>
Add Sub-class MetaFileSmall for small files
+ Test fixed
+ other preparations for large files

Signed-off-by: Nico Rutishauser <nr@hotmail.ch>
Merge branch 'master' of https://github.com/Hive2Hive/Hive2Hive.git into large-file
Merge branch 'master' into large-file
Introduce MetaFileLarge, adapt the 'download' process

Signed-off-by: Nico Rutishauser <nr@hotmail.ch>
Return at least 1 chunk for an empty file

Signed-off-by: Nico Rutishauser <nr@hotmail.ch>
Merge branch 'master' into large-file

Conflicts:
	org.hive2hive.core/src/org/hive2hive/core/network/data/TTLRefreshManager.java
	org.hive2hive.core/src/org/hive2hive/core/processes/implementations/common/PutMetaFileStep.java
	org.hive2hive.core/src/org/hive2hive/core/processes/implementations/files/add/CreateMetaFileStep.java
	org.hive2hive.core/src/org/hive2hive/core/processes/implementations/files/add/InitializeChunksStep.java
	org.hive2hive.core/src/org/hive2hive/core/processes/implementations/files/add/PutSingleChunkStep.java
	org.hive2hive.core/src/org/hive2hive/core/processes/implementations/files/recover/SelectVersionStep.java
	org.hive2hive.core/src/org/hive2hive/core/processes/implementations/share/pkupdate/InitializeChunkUpdateStep.java


Signed-off-by: Nico Rutishauser <nr@hotmail.ch>
Basic implementation of a download manager

used for later supporting large files

Signed-off-by: Nico Rutishauser <nr@hotmail.ch>
Put the DownloadManager into the session

Signed-off-by: Nico Rutishauser <nr@hotmail.ch>
Store the download tasks at logot | stop downloads beforehand

Signed-off-by: Nico Rutishauser <nr@hotmail.ch>
Improve the error handling

Signed-off-by: Nico Rutishauser <nr@hotmail.ch>
Restructured the large file download (not finished yet)

Signed-off-by: Nico Rutishauser <nr@hotmail.ch>
Added construct with stubs for large file

Signed-off-by: Nico Rutishauser <nr@hotmail.ch>
Direct download process (not tested yet)

Signed-off-by: Nico Rutishauser <nr@hotmail.ch>
Init the download process in the downloadmanager

Signed-off-by: Nico Rutishauser <nr@hotmail.ch>
Merge remote-tracking branch 'origin/master' into large-file
Re-arrange the process synchronization for the download

Signed-off-by: Nico Rutishauser <nr@hotmail.ch>
Improve the logging

Signed-off-by: Nico Rutishauser <nr@hotmail.ch>
Further improved logging. Re-chosing a peer does not work yet

Signed-off-by: Nico Rutishauser <nr@hotmail.ch>