TOOLS-279 fixes: 1. convertKeys method should return marshallable bson.M instead of ordinary Go map. Updated unit tests accordingly.
                 2. Don't use UnixNano(). It could easily return a number > int64.
		 3. escape $code value in json.Javascript