Add hash cost as a possible configurable option

For now it's simply calculated on install and upgrade and stored as a setting

Signed-off-by: Shitiz Garg <mail@dragooon.net>
Merge pull request #1712 from Dragooon/release-2.1

Add hash cost as a possible configurable option