Ok, so the problem here was that somehow my iPhone was connected to iCloud... But it wasn't at the same time... This is really weird, and Apple should at least notify on this somehow, because my iPhone was connected to iCloud and synced. Wow.
Worked the same for me, though also required e) after a) to d):
a) going to the apple discussions (as mentioned) to 'register' my device(s) with my apple id. (weird)
b) turning iMessages off and on (on both devices)
c) turning my icloud off and on (on both devices) (scary dialog boxes, push on)
d) turning by bluetooth off and on (on both devices)
and finally, after none of that worked,
e) turning both devices off and on.
Presto, it finally worked. The feature only seems to work if the email or message or calendar (whatever you want to hand-off) is actually open on the screen on one of the devices. Unlock other device and the email or messages or whatever icon appears bottom left. Swipe it up and roll.
I have had a few of these issues with icloud and apple id's. Seems like you really have to reset all icloud and messages services to get hand-off working properly.
Looking at https://jamfnation.jamfsoftware.com/discussion.html?id=16976 the key is to configure a 'mac os x server' account, and then enable iCloud Files. That way you can access files on the server just like iCloud files.
Only downside I've found so far, you need to enable iCloud files too, you can't just use file sharing of OS X Server.
Best Answer
AirDrop
AirDrop for iOS is similar to the OS X counterpart. It allows you to share files over WiFi1 to nearby devices, such as photos, contacts or Passbook passes/tickets.
The 'Contacts Only' setting requires that you be logged in to your iCloud account, and you must have the sending device's Apple ID in your contacts.
The receiving device must accept a share, similar to OS X. A popup notification will appear when someone attempts to send you something.
1 (however Bluetooth must be powered for the initial connection to begin - the device sends files through WiFi, however the secure connection handshake is achieved through Bluetooth)