Some fixes to make dependencies & versioning work properly

Also, adding a more comprehensive gitignore.
We've moved to hardcoding the version in both places for simplicity.