basic timelock that can be used to lock liquidities
All credits go to Chris Hatch https://github.com/chatch/hashed-timelock-contract-ethereum.git who wrote the original code. This is just an updated and simplified version, with one less function to increase user's trust.