added unique subscribe handles and fixed subscribedOnce in CoreApi
added karma/mocha and grunt and converted tests. removed jstd.