Akash - #1690 - added migration from R1 to R2 code
Akash - #1690 - added migration db to keep track of which migrations have run
Merge pull request #472 from akash/release-1.0.0

fixing migration from r0.9 to 1.0