Sharing update - some tweaks to karma config and Makefile

I have been writing up notes while I try and get the sharing branch to build from a "blank slate" developer's machine. I will post all of my notes in the Wiki. In the meantime this pull request does fix the build issues. (I still need to go back to an even cleaner slate where I have no Postgres privileges and test it again)