Changed architecture to be more inline with what the wiki describes.  TODO: delete Authentication.js, fix up console.log everywhere, run tests on /private /public toggling as it has crashed with 'not a buffer'